< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03101140.xhp

(section: defstr) (bookmark: bm_id6161381)
DefStr statement

DefStr ステートメント

DefStr Statement [Runtime]
DefStr ステートメント [実行時](par_idN10577.)

If no type-declaration character or keyword is specified, the DefStr statement sets the default variable type, according to a letter range.
型宣言文字またはキーワードが指定されていない場合、DefStr ステートメントは文字範囲に従ってデフォルトの変数型を設定します。(par_idN10587.)

(/section: defstr)

Syntax:
構文:(par_idN1058A.)

Defxxx Characterrange1[, Characterrange2[,...]]
Defxxx Characterrange1[, Characterrange2[,...]](par_idN1058E.)

Parameters:
パラメータ:(par_idN10591.)

Characterrange: Letters that specify the range of variables that you want to set a default data type for.
Characterrange: デフォルトのデータ型の設定対象である変数の範囲を指定する文字。(par_idN10595.)

xxx: Keyword that defines the default variable type:
xxx: デフォルトの変数型を定義するキーワード。(par_idN1059C.)

Keyword: Default variable type
Keyword: デフォルトの変数型(par_idN105A3.)

DefStr: String
DefStr: 文字列(par_idN105AA.)

Example:
例:(par_idN105B1.)

REM Prefix definitions for variable types:
REM 変数型のプレフィックスの定義:(par_idN105B5.)

DefBool b
DefBool b(par_idN105B8.)

DefDate t
DefDate t(par_idN105BB.)

DefDbL d
DefDbL d(par_idN105BE.)

DefInt i
DefInt i(par_idN105C1.)

DefLng l
DefLng l(par_idN105C4.)

DefObj o
DefObj o(par_idN105C7.)

DefVar v
DefVar v(par_idN105CA.)

DefStr s
DefStr s(par_idN105CD.)

Sub ExampleDefStr
Sub ExampleDefStr(par_idN105D0.)

sStr=String REM sStr is an implicit string variable
sStr=String REM sStr は暗黙的な文字列変数です(par_idN105D3.)

end sub
end sub(par_idN105D6.)


< Prev / Next >